import axios from "axios";

declare global {
    interface Window {
        $$SucOrganizationalBaseUrl?: string;
        $$SucWaterlooBaseUrl?: string;
        $$SucGetDataBaseUrl?: string;
    }
}

export const $organizational = axios.create({
    baseURL: window.$$SucOrganizationalBaseUrl || "/api/organizational/",
});

export const $waterloo = axios.create({
    baseURL: window.$$SucWaterlooBaseUrl || "/api/waterloo/",
});

export const $getdata = axios.create({
    baseURL: window.$$SucGetDataBaseUrl || "api/dip/rest",
});
